﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CatAndDog3
{
    class Animal
    {
        protected string name = string.Empty;
        protected int shoutnum = 3;

        public int ShoutNum
        {
            set {
                shoutnum = value;
            }
            get {
                return shoutnum;
            }
        }

        public Animal()
        {
            this.name = "无名";
        }

        public Animal(string name)
        {
            this.name = name;
        }

        public virtual string Shout()
        {
            return "";
        }
    }
}
